.TH bincopy 1
'''
.SH NAME
\fBbincopy\fR \- block copy tool
'''
.SH SYNOPSIS
.IP "\fBbincopy\fR \fB-r\fR \fI/dev/block\fR \fIoutput.bin\fR [\fIrange\fR]" 4
Read data from a block device into a file.
.IP "\fBbincopy\fR \fB-w\fR \fI/dev/block\fR \fIinput.bin\fR [\fIrange\fR]" 4
Write data from a file to a block device.
.IP "\fBbincopy\fR \fB-z\fR \fIoutput.bin\fR [\fIrange\fR]" 4
Create zero-filled file of given size.
.IP "\fBbincopy\fR \fB-zr\fR \fIoutput.bin\fR [\fIrange\fR]" 4
Truncate file to given size and zero-fill it.
.IP "\fBbincopy\fR \fB-zw\fR \fIoutput.bin\fR [\fIrange\fR]" 4
Zero-fill a block in a file without changing its size.

'''
.SH DESCRIPTION
\fBbincopy\fR copies a chunk of data to/from a block device, or to/from
and image of a block device.
.P
The \fIrange\fR to copy is specified in the following form:
.IP
[\fIsize\fR][\fB@\fIl-offset\fR][\fB:\fIr-offset\fR] [\fBx\fImultiplier\fR]
.P
Total of \fIsize\fR bytes are copied after seeking \fIl-offset\fR into the left
file (\fI/dev/block\fR) and \fIr-offset\fR into the right file (\fIoutput.bin\fR).
'''
.SH SEE ALSO
\fBdd\fR(1), \fBread\fR(2), \fBwrite\fR(2), \fBlseek\fR(2).
